Skip to content

fix: resolve type-checker timeout in CardDetailView onChange#53

Merged
rogeriochaves merged 1 commit intolangwatch:mainfrom
AlexanderWillner:fix/onChange-typecheck
Apr 7, 2026
Merged

fix: resolve type-checker timeout in CardDetailView onChange#53
rogeriochaves merged 1 commit intolangwatch:mainfrom
AlexanderWillner:fix/onChange-typecheck

Conversation

@AlexanderWillner
Copy link
Copy Markdown
Contributor

Summary

  • Add explicit as String? type annotation to .onChange(of: card.link.tmuxLink?.sessionName) in CardDetailView.swift
  • Fixes Swift compiler error: "the compiler is unable to type-check this expression in reasonable time"

Test plan

  • swift build succeeds
  • make run-app launches without errors

🤖 Generated with Claude Code

The optional chaining expression `card.link.tmuxLink?.sessionName`
in the `.onChange(of:)` modifier caused the Swift compiler to
exceed its type-checking budget. Adding an explicit `as String?`
annotation resolves the ambiguity.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@rogeriochaves rogeriochaves merged commit 61b4e77 into langwatch:main Apr 7, 2026
@rogeriochaves
Copy link
Copy Markdown
Contributor

thanks @AlexanderWillner!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants